<!DOCTYPE html>
<html lang="zh">
<head>
  <meta charset="UTF-8" />
  <meta name="viewport" content="width=device-width, initial-scale=1.0"/>
  <title>学生成绩单</title>
  <style>
    body {
      font-family: "Microsoft YaHei", "SimHei", sans-serif;
      margin: 40px;
    }
    .header {
      text-align: center;
      margin-bottom: 30px;
    }
    .course {
      border: 1px solid #ccc;
      margin: 12px 0;
      padding: 12px;
      border-radius: 6px;
      background-color: #f9f9f9;
    }
    .course strong {
      color: #333;
    }
  </style>
</head>
<body>
  <div id="app">
    <div class="header">
      <h1>{{ title }}</h1>
      测试pdf
      
    </div>
    
  </div>

  <!-- 加载 Vue 2 -->
  <script src="http://localhost:3000/templates/vue2.min.js"></script>

  <!-- Vue 应用逻辑（完全在 HTML 内部） -->
  <script>
    console.log('🔍 Vue exists:', typeof Vue);

    new Vue({
      el: '#app',
      data:  window.__PDF_DATA__,
      mounted: function () {
        console.log('✅ Vue 2 应用已挂载');
      }
    });
  </script>
</body>
</html>